﻿<%@ Control Language="C#" Inherits="Yuanlin.Business.PlantSection_SectionEdit, Yuanlin.Business"
    AutoEventWireup="true" %>

<script type="text/javascript">
    <!--
    function CheckValue()
    {
        var title = getObject('<%= subjectTextBox.ClientID %>');
        if(title.value.length == 0)
        {
            alert('请填写版块名称！');
            title.focus();
            return false;
        }
        return true;
    }
    //-->
</script>

<div class="AdminArea">
    <fieldset>
        <legend>
            <nwap:ResourceLiteral runat="server" ResourceName="System_ControlPanel_AquacultureSection_Section_EditControlTitle"
                ResourceFile="ControlPanelResources.xml" /></legend>
        <div class="FormRow">
            <div class="LargerFieldNameRequireCharacter">
                <nwap:ResourceLabel ID="ResourceLabel1" runat="Server" CssClass="RedColor" ResourceFile="ControlPanelResources.xml"
                    ResourceName="RequireCharacter" />
                <nwap:ResourceLabel runat="Server" ControlToLabel="subjectTextBox" ResourceFile="ControlPanelResources.xml"
                    ResourceName="System_ControlPanel_AquacultureSection_Section_Subject" />
            </div>
            <nwap:ValuedTextBox runat="server" CssClass="InputField MiddleWidth" ID="subjectTextBox" />
        </div>
        <div class="FormRow">
            <nwap:ResourceLabel CssClass="FieldName" runat="Server" ResourceFile="ControlPanelResources.xml"
                ResourceName="System_ControlPanel_AquacultureSection_Section_Enabled" />
            <nwap:ValuedCheckBox runat="server" CssClass="CheckBox" ID="enabledCheckBox" />
        </div>
        <div class="FormRow SubmitButtonRow">
            <nwap:ResourceButton ID="saveButton" OnClientClick="return CheckValue()" ResourceName="Save" CssClass="Button" runat="server">
            </nwap:ResourceButton>
            <nwap:Resourcebutton id="backButton" ResourceName="Back" CssClass="Button" Runat="server"></nwap:Resourcebutton>
        </div>
    </fieldset>
</div>
